package com.rq.base.ui.impl;

import android.content.Context;

import com.rq.base.net.impl.OnHttpListener;
import com.rq.base.net.RequestType;

import androidx.annotation.NonNull;

public interface BaseView extends OnHttpListener {//统一网络回调

    Context getContext();

    <T extends Object> void handleFailResponse(T baseBean);  //统一处理响应失败

    void showLoading(String... show);

    void dismissLoading();

    //连接异常
    void onConnectError(@NonNull RequestType type);
}
